// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data
{
    /// <summary>
    ///     Specifies the timing for the SetValue attribute to set values.
    /// </summary>
    public enum SetValueStrategy
    {
        /// <summary>
        ///     (Default)Sets the value for the specified property in the embedded model class when data is 
        ///     inserted or updated in the current model class.
        /// </summary>
        Always,

        /// <summary>
        ///     Sets the value for the specified property in the embedded model class when data is inserted 
        ///     in the current model class.
        /// </summary>
        AfterParentCreated,

        /// <summary>
        ///     Sets the value for the specified property in the embedded model class when data is updated 
        ///     in the current model class.
        /// </summary>
        AfterParentUpdated
    }
}
